package com.yangrr.weblog.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
// 多模块项目中，必需手动指定扫描 com.yangrr.weblog 包下面的所有类
@ComponentScan({"com.yangrr.weblog.*"})
@EnableScheduling // 启用定时任务
@Slf4j
public class WeblogWebApplication {
    public static void main(String[] args) {
        log.info("WeblogWebApplication start");
        SpringApplication.run(WeblogWebApplication.class, args);
    }

}
